Skip to main content
POST
/
audiences
/
segments
/
bulk-add
Create multiple audience segments
curl --request POST \
  --url https://your_a2_service/audiences/segments/bulk-add \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '[
  {
    "approximated_size": 123,
    "created_at": "2023-11-07T05:31:56Z",
    "deprecated_properties": {},
    "description": "<string>",
    "management_type": "selfmanaged",
    "name": "<string>",
    "owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "properties": {},
    "updated_at": "2023-11-07T05:31:56Z"
  }
]'
"<any>"

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json ยท AudienceSegmentCreateSchema ยท object[]
management_type
enum<string>
required

The management type of the audience segment

Available options:
selfmanaged,
systemmanaged
name
string
required

Name of the audience segment

owner_id
string<uuid>
required

Owner ID of the audience segment

approximated_size
integer | null

Approximated size of the audience segment.

created_at
string<date-time> | null

The date and time the entity was created.

deprecated_properties
object

Deprecated properties for the audience segment.

description
string | null

Description of the audience segment

properties
object

Properties for the audience segment.

The key is AudienceAttribute.code, and the value can be a list of AudienceAttributeValue.value
updated_at
string<date-time> | null

The date and time the entity was last updated.

Response

Successful Response

The response is of type any.